<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>作业1：伸缩菜单项</title>
    <style>
        .box1 {
            width: 500px;
            height: 300px;
            border: 1px solid #ccc;

            display: flex;
            flex-direction: row;
        }

        .box1 .item1 {
            flex: 1;
            height: 30px;
            text-align: center;
            line-height: 30px;

            border-right: 1px solid black;
            background-color: #ffc0cb;

        }

        .item1:last-child {
            border-right: none;
        }
    </style>
</head>

<body>
    <div class="box1">
        <span class="item1">首页</span>
        <span class="item1">商品分类</span>
        <span class="item1">我的订单</span>
        <span class="item1">最新商品</span>
        <span class="item1">联系我们</span>
    </div>
</body>

</html>